#!/bin/bash

if test -z "${XDG_RUNTIME_DIR}"; then
    export XDG_RUNTIME_DIR=/tmp/run/user/${UID}
    mkdir -p ${XDG_RUNTIME_DIR}
    chmod 0700 "${XDG_RUNTIME_DIR}"
fi

# export DISPLAY=:0

export _JAVA_AWT_WM_NONREPARENTING=1

export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export SDL_IM_MODULE=fcitx
# obs studio
export QT_QPA_PLATFORM=wayland

export JAVA_HOME=~/soft/java/jdk1.8.0_301
export MAVEN_HOME=~/soft/apache-maven-3.8.5
export M2_HOME=~/soft/apache-maven-3.8.5
export PATH=$PATH:$MAVEN_HOME/bin:~/bin

# wlr-randr --output LVDS-1 --off
# wlr-randr --output HDMI-A-1 --pos 0,0
# wlr-randr --output VGA-2  --pos 1920,0

dbus-launch --exit-with-session ~/bin/lib/dwl -s ~/bin/dwlinit
